<div th:fragment="details">

    <div class="modal fade" id="myModal"  tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
        <div class="modal-dialog" role="document">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                    <h4 class="modal-title" id="myModalLabel">系统反馈详情</h4>
                </div>
                <div class="modal-body">
                    <div class="form-group">
                        <label for="title" class="control-label">标题:</label>
                        <input type="text" class="form-control"  readonly="readonly" id="title" name="title">
                    </div>
                    <div class="form-group">
                        <label for="content" class="control-label">内容:</label>
                        <input type="text" class="form-control"  readonly="readonly"   id="content" name="content">
                    </div>
                    <div class="form-group">
                        <label for="status" class="control-label">状态:</label>
                        <input type="text" class="form-control"  readonly="readonly"   id="status" name="status">
                    </div>
                    <div class="form-group">
                        <label for="contactName" class="control-label">联系人:</label>
                        <input type="text" class="form-control"  readonly="readonly"   id="contactName" name="contactName">
                    </div>
                    <div class="form-group">
                        <label for="contactNumber" class="control-label">联系电话:</label>
                        <input type="text" class="form-control"   readonly="readonly"  id="contactNumber" name="contactNumber">
                    </div>
                    <div class="form-group">
                        <label for="createTime" class="control-label">反馈时间:</label>
                        <input type="text" class="form-control"   readonly="readonly" id="createTime" name="createTime">
                    </div>

                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                </div>

            </div>
        </div>
    </div>

    <script>
        //加載用戶編輯彈框
        function EditViewById(id){
            $('#myModal').modal();
            const data = {
                id: id
            };
            myrequest("admin/feedback/details",data,'GET',function(data){
                $("#title").val(data.data.title);
                $("#content").val(data.data.content);
                const status = data.data.status;
                if (status === 1) {
                    $("#status").val('未解决');
                } else if (status === 2) {
                    $("#status").val('已解决');
                }
                $("#contactName").val(data.data.contactName);
                $("#contactNumber").val(data.data.contactNumber);
                $("#createTime").val(data.data.createTime);
            }, function(data){
                toastr.error(data.msg);
            })
        }

    </script>

</div>